package com.bub.pay.core.base;

import java.io.Serializable;
import java.util.Date;

import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;

public class BaseDomain implements Serializable {
	@Id
	@KeySql(useGeneratedKeys = true)
	protected Long id;

	/**
	 * 删除标识
	 */
	protected Boolean delFlag;

	/**
	 * 创建人
	 */
	protected Long createId;

	/**
	 * 创建时间
	 */
	protected Date createDate;

	/**
	 * 修改人
	 */
	protected Long updateId;

	/**
	 * 修改时间
	 */
	protected Date updateDate;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Boolean getDelFlag() {
		return delFlag == null ? false : delFlag;
	}

	public void setDelFlag(Boolean delFlag) {
		this.delFlag = delFlag;
	}

	public Long getCreateId() {
		return createId;
	}

	public void setCreateId(Long createId) {
		this.createId = createId;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Long getUpdateId() {
		return updateId;
	}

	public void setUpdateId(Long updateId) {
		this.updateId = updateId;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}
}
